
const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 8081,  // Set the port to 8081
  },
  configureWebpack: {
    resolve: {
      fallback: {
        util: require.resolve('util/'),
        https: require.resolve("https-browserify"),
        http: require.resolve("stream-http"),
        assert: require.resolve("assert/"),
        buffer: require.resolve("buffer/"),
        stream: require.resolve("stream-browserify"),
      }
    }
  },

  css: {
    loaderOptions: {
      postcss: {
        postcssOptions:{
          plugins: [
            require('tailwindcss'),
            require('autoprefixer')
          ]
        }
      }
    }
  },

})
